from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

class UserUpload(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), nullable=False)
    email = db.Column(db.String(120), nullable=False)
    file_path = db.Column(db.String(200), nullable=False)

    def __init__(self, username, email, file_path):
        self.username = username
        self.email = email
        self.file_path = file_path
